/*
 * XML Type:  EnrollResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.EnrollResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML EnrollResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class EnrollResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.EnrollResponse
{
    
    public EnrollResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TEMPPASS$0 = 
        new javax.xml.namespace.QName("", "TEMPPASS");
    private static final javax.xml.namespace.QName USERID$2 = 
        new javax.xml.namespace.QName("", "USERID");
    private static final javax.xml.namespace.QName DTEXPIRE$4 = 
        new javax.xml.namespace.QName("", "DTEXPIRE");
    
    
    /**
     * Gets the "TEMPPASS" element
     */
    public java.lang.String getTEMPPASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEMPPASS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TEMPPASS" element
     */
    public net.ofx.types.x2003.x04.TempPassType xgetTEMPPASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TempPassType target = null;
            target = (net.ofx.types.x2003.x04.TempPassType)get_store().find_element_user(TEMPPASS$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "TEMPPASS" element
     */
    public boolean isSetTEMPPASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEMPPASS$0) != 0;
        }
    }
    
    /**
     * Sets the "TEMPPASS" element
     */
    public void setTEMPPASS(java.lang.String temppass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEMPPASS$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEMPPASS$0);
            }
            target.setStringValue(temppass);
        }
    }
    
    /**
     * Sets (as xml) the "TEMPPASS" element
     */
    public void xsetTEMPPASS(net.ofx.types.x2003.x04.TempPassType temppass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TempPassType target = null;
            target = (net.ofx.types.x2003.x04.TempPassType)get_store().find_element_user(TEMPPASS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TempPassType)get_store().add_element_user(TEMPPASS$0);
            }
            target.set(temppass);
        }
    }
    
    /**
     * Unsets the "TEMPPASS" element
     */
    public void unsetTEMPPASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEMPPASS$0, 0);
        }
    }
    
    /**
     * Gets the "USERID" element
     */
    public java.lang.String getUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "USERID" element
     */
    public net.ofx.types.x2003.x04.IdType xgetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "USERID" element
     */
    public boolean isSetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(USERID$2) != 0;
        }
    }
    
    /**
     * Sets the "USERID" element
     */
    public void setUSERID(java.lang.String userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERID$2);
            }
            target.setStringValue(userid);
        }
    }
    
    /**
     * Sets (as xml) the "USERID" element
     */
    public void xsetUSERID(net.ofx.types.x2003.x04.IdType userid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.IdType target = null;
            target = (net.ofx.types.x2003.x04.IdType)get_store().find_element_user(USERID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.IdType)get_store().add_element_user(USERID$2);
            }
            target.set(userid);
        }
    }
    
    /**
     * Unsets the "USERID" element
     */
    public void unsetUSERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(USERID$2, 0);
        }
    }
    
    /**
     * Gets the "DTEXPIRE" element
     */
    public java.lang.String getDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEXPIRE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTEXPIRE" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEXPIRE$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTEXPIRE" element
     */
    public boolean isSetDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTEXPIRE$4) != 0;
        }
    }
    
    /**
     * Sets the "DTEXPIRE" element
     */
    public void setDTEXPIRE(java.lang.String dtexpire)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEXPIRE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTEXPIRE$4);
            }
            target.setStringValue(dtexpire);
        }
    }
    
    /**
     * Sets (as xml) the "DTEXPIRE" element
     */
    public void xsetDTEXPIRE(net.ofx.types.x2003.x04.DateTimeType dtexpire)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEXPIRE$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTEXPIRE$4);
            }
            target.set(dtexpire);
        }
    }
    
    /**
     * Unsets the "DTEXPIRE" element
     */
    public void unsetDTEXPIRE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTEXPIRE$4, 0);
        }
    }
}
